<?php include $this->getViewFile('/common/Head'); ?>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
   <?php include $this->getViewFile('/common/Nav') ?>
   <form class="J_ajaxForm" action="<?php echo AdminBase::U("edit") ?>" method="post" id="myform">
   <div class="h_a">基本属性</div>
   <div class="table_full">
   <table width="100%" class="table_form contentWrap">
        <tbody>
          <tr>
            <th width="80">版块名称</th>
            <td><input type="test" name="block_title" class="input length_6" value="<?php echo $data->block_title?>" placeholder="版块名称"></td>
          </tr>
          <tr>
            <th>类型</th>
            <td><?php echo Form::radio(array(1=>'产品',2=>'其他'),$data->type,'name="type"') ?></td>
          </tr>
          <tr>
            <th>显示数量</th>
            <td><input type="text" name="goods_num" class="input length_1 " value="<?php echo $data->goods_num?>" placeholder="显示数量"></td>
          </tr>
          <tr>
            <th>商品ID</th>
            <td><input type="text" name="goods_ids" class="input length_5 " value="<?php echo $data->goods_ids?>" placeholder="商品ID，多个ID用英文逗号分隔"></td>
          </tr>
          <tr>
            <th>开始时间</th>
            <td><input type="text" name="start_time" class="input length_2 J_date " value="<?php echo date('Y-m-d',$data->start_time)?>" placeholder="开始时间"></td>
          </tr>
          <tr>
            <th>结束时间</th>
            <td><input type="text" name="end_time" class="input length_2 J_date " value="<?php echo date('Y-m-d',$data->end_time)?>" placeholder="结束时间"></td>
          </tr>
          <tr>
            <th>是否启用</th>
            <td><?php echo Form::radio(array(0=>'禁用',1=>'启用'),$data->status,'name="status"') ?></td>
          </tr>
          <tr>
            <th>排序</th>
            <td><input type="text" name="listorder" class="input length_1 " value="<?php echo $data->listorder?>" placeholder="排序"></td>
          </tr>
        </tbody>
      </table>
   </div>
   <div class="btn_wrap1">
      <div class="btn_wrap_pd">             
        <input type="hidden" name="id" value="<?php echo $data->id?>">
        <button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">编辑</button>
      </div>
    </div>
    </form>
</div>
<script src="<?php echo $staticUrl; ?>statics/js/common.js"></script>
</body>
</html>